package Entidad;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;


@Entity

@DiscriminatorValue("Actor")
/**
 * Actor
 */

public class Actor extends Person {
   
    @ManyToMany(mappedBy="actores")
    private List<Movie> peliculas = new ArrayList<>();

    public Actor() {
    }
    
    public List<Movie> getPeliculas() {
        return peliculas;
    }

    public void setPeliculas(List<Movie> peliculas) {
        this.peliculas = peliculas;
    }
}